from rest_framework import serializers

from .models import *


class WorksSerializer(serializers.ModelSerializer):
    class Meta:
        model = Works
        fields = "__all__"
        depth = 1

class CommentSerializer(serializers.ModelSerializer):
    class Meta:
        model = Comment
        fields = "__all__"
        depth = 1

class CollectionSerializer(serializers.ModelSerializer):
    class Meta:
        model = Collection
        fields = "__all__"
        depth = 2